package cn.ffcs.uec.outStaffAdjustPostApply.action;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Components;

import cn.ffcs.raptornuke.plugin.common.zk.ctrl.BasePortletComposer;
import cn.ffcs.raptornuke.portal.theme.ThemeDisplay;
import cn.ffcs.uec.outStaffAdjustPostApply.action.bean.OutStaffAdjustPostApplyMainBean;
import cn.ffcs.uom.common.util.IPortletInfoProvider;
import lombok.Getter;
import lombok.Setter;

@Controller
@Scope("prototype")
public class OutStaffAdjustPostApplyMainComposer extends BasePortletComposer implements IPortletInfoProvider {

	private static final long serialVersionUID = -6996974836838109462L;

	@Getter
	@Setter
	private OutStaffAdjustPostApplyMainBean bean = new OutStaffAdjustPostApplyMainBean();
	
	@Override
	public String getPortletId() {
		return super.getPortletId();
	}

	@Override
	public ThemeDisplay getThemeDisplay() {
		return super.getThemeDisplay();
	}
	
	@Override
	public void doAfterCompose(Component comp) throws Exception {
		super.doAfterCompose(comp);
		Components.wireVariables(comp, bean);
		bean.getOutStaffAdjustPostApplyListboxExt().setPortletInfoProvider(this);
	}
}
